﻿<%@ Control Language="vb" AutoEventWireup="false" Explicit ="true" codefile="SerachResult.ascx.vb" Inherits="NVPortal.Modules.NVHoiVien.Search.inc_SerachResult" %>
<%@ Register TagName="Paging" TagPrefix="Dotnetnuke" Src="~/Controls/ctlMiniPaging.ascx" %>
<script type="text/javascript" language="JavaScript" src="/Controls/popcalendar.js"></script>
<style type="text/css">
.HHBCHtable {padding: 10px 0px; border-bottom: dotted 1px #ccc;}
.HHBCHtd1 {vertical-align: top; width: 120px; padding: 0px 5px;}
.HHBCHtd2 {vertical-align: top; text-align: left; font-family: Arial; font-size: 12px; color: #434343; line-height: 120%;}
.lblTextINfo {font-weight: normal;}
.hplFullNameHH, a.hplFullNameHH:link, a.hplFullNameHH:visited {font-size: 17px; color: #B02020;line-height: 130%;}
a.hplFullNameHH:hover {font-size: 17px; color: #000;line-height: 130%;}
</style>

<table width="100%" cellspacing="0">
    <tr>
        <td style="width:100%">
            <asp:TextBox ID="txtSearch" runat="server" Width="100%"></asp:TextBox>
        </td>
        <td style="padding-left:5px;">
            <asp:Button class="button_Search" ID="btnSearch" runat="server" Text="Tìm kiếm" BackColor="#ffffff" Font-Bold="true"  Width="70px" />
        </td>
    </tr>
    <tr>
        <td style="background-color:#f0f0f0">
            <asp:RadioButtonList ID="rbtChoice" runat="server" ForeColor="#02509e" RepeatDirection="Horizontal">
                <asp:ListItem Text="Tất cả" Value="2" Selected="True"></asp:ListItem>
                <asp:ListItem Text="Tìm theo tên" Value="1"></asp:ListItem>
            </asp:RadioButtonList>
        </td>
        <td style="background-color:#f0f0f0; text-align:right; padding-right:5px;">
            
                <asp:LinkButton ID="lbtMore" runat="server" Text="Nâng cao" Visible="false" ForeColor="#02509e" Font-Size="12px" Font-Bold="true" Font-Underline="true"></asp:LinkButton>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Panel ID="plSearchAdv" runat="server" Visible="false">
            <table width="100%" cellpadding="2" cellspacing="2" border="0">
                <tr>
                    <td>
                         Khu vực: <asp:DropDownList ID="dlKhuVuc" runat="server"></asp:DropDownList><br />
                         Lĩnh vực Kinh doanh: <asp:DropDownList ID="ddlLinhVucKD" runat="server"></asp:DropDownList><br />
                         Quy mô: <asp:DropDownList ID="ddlQuyMo" runat="server"></asp:DropDownList>
                    </td>
                    <td align="right">
                        Số lượng kết quả:   
                            <asp:DropDownList ID="ddlSumResult" runat="server">
                                <asp:ListItem Text="100 kết quả" Value="100"></asp:ListItem>
                                <asp:ListItem Text="200 kết quả" Value="200"></asp:ListItem>
                                <asp:ListItem Text="300 kết quả" Value="300"></asp:ListItem>
                                <asp:ListItem Text="400 kết quả" Value="400"></asp:ListItem>
                                <asp:ListItem Text="500 kết quả" Value="500"></asp:ListItem>
                            </asp:DropDownList><br />
                        Sắp xếp theo thứ tự:
                            <asp:DropDownList ID="ddlOrder" runat="server">
                                <asp:ListItem Text="Ngày giảm dần" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Ngày tăng dần" Value="2"></asp:ListItem>
                            </asp:DropDownList><br />
                        Mỗi trang có:
                            <asp:DropDownList ID="ddlPageSize" runat="server">
                                <asp:ListItem Text="10 kết quả" Value="10"></asp:ListItem>
                                <asp:ListItem Text="20 kết quả" Value="20"></asp:ListItem>
                                <asp:ListItem Text="30 kết quả" Value="30"></asp:ListItem>
                                <asp:ListItem Text="40 kết quả" Value="40"></asp:ListItem>
                                <asp:ListItem Text="50 kết quả" Value="50"></asp:ListItem>
                            </asp:DropDownList>
                    </td>
                </tr>
            </table>
            </asp:Panel>
        </td>
    </tr>
</table>


<table width="100%">
	<tr>
		<td class="moduletable_title_l" style="border-bottom:1 #d2d2d2 solid; padding: 10px 0px 5px 5px; font-weight: bold; color: Blue;" valign="top"><%= CategoryName %></td>
	</tr>
	<tr >
		<td>
			<asp:DataGrid id="drgNews" runat="server" AllowPaging="true" PageSize="10" CellPadding="3" AutoGenerateColumns="False" ShowHeader="False"
				GridLines="None" Width="100%" >
				<Columns>
					<asp:TemplateColumn HeaderText="C&#225;c tin kh&#225;c">
						<ItemTemplate>
							<table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td class="HHBCHtd1">
                                        <asp:HyperLink CssClass="NewsSpecialV_Other" ID="HyperLink1" runat="server" ToolTip='<%# DataBinder.Eval(Container.DataItem,"FullName")%>'
                                            NavigateUrl='<%# FormatURL("thongtin",DataBinder.Eval(Container.DataItem,"id"),DataBinder.Eval(Container.DataItem,"FullName")) %>'>
                                        <asp:Image Style="padding: 2px; border: 1px solid #e4e4e4;" BorderWidth="0" ID="imgNews" runat="server" Width="120" ImageUrl ='<%# iif(DataBinder.Eval(Container, "DataItem.avatar").tostring().Contains("http://"),DataBinder.Eval(Container, "DataItem.avatar"), PortalSettings.HomeDirectory & "Hoivien/" & DataBinder.Eval(Container, "DataItem.avatar")) %>' /></asp:HyperLink>
                                    </td>
                                    <td class="HHBCHtd2">
                                        <asp:HyperLink CssClass="hplFullNameHH" ID="hplOtherNews" runat="server" NavigateUrl='<%# FormatURL("thongtin",DataBinder.Eval(Container.DataItem,"id"),DataBinder.Eval(Container.DataItem,"fullname")) %>'
                                            Text='<%# DataBinder.Eval(Container.DataItem,"fullname")%>'></asp:HyperLink><br />
                                        Chức vụ: <asp:Label ID="lblChucVu" CssClass="lblTextINfo" runat="server" Text='<%# GetChucVu(DataBinder.Eval(Container.DataItem, "VitriBCH")) %>'></asp:Label><br />
                                        Công ty: <asp:Label ID="lblCongty" CssClass="lblTextINfo" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "congty") %>'></asp:Label>
                                    </td>    
                                </tr>
                            </table>
						</ItemTemplate>
					</asp:TemplateColumn>
				</Columns>
                <PagerStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                    Font-Underline="False" HorizontalAlign="Right" Visible="false" NextPageText="" PrevPageText=" >" />
			</asp:DataGrid>
	    </td>
	</tr>
</table>
<table class="tbPaging" width="100%" runat="server" id="tbPaging">
    <tr>
        <td style="text-align:right">
            <Dotnetnuke:Paging ID="ctlPaging" runat="server" />
        </td>
    </tr>
</table>
